package com.sfac.javaSpringCloudAccount.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sfac.entity.account.Resource;
import com.sfac.entity.common.Result;
import com.sfac.entity.common.SearchBean;


public interface ResourceService {

	Result<Resource> insertResource(Resource resource);

	Result<Resource> updateResource(Resource resource);

	Result<Object> deleteResourceById(int id);
	
	Resource getResourceById(int id);
	
	List<Resource> getResourcesByRoleId(int roleId);
	
	PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);
}
